# 从键盘输入一个字符序列，
# 统计，大写字母，小写字母，数字，其它字符各出现次数，
# 将次数保存到字典中。

def aiff_count(data):
    count = {"DX": 0, "XX": 0, "SZ": 0, "QT": 0}
    for c in data:
            if '0' <= c <= '9':
                count["SZ"] += 1
            elif 'A' <= c <= 'Z':
                count["DX"] += 1
            elif 'a' <= c <= 'z':
                count["XX"] += 1
            else:
                count["QT"] += 1
    return count


